package arsmodeller.commands;

import org.eclipse.draw2d.geometry.Rectangle;
import org.eclipse.gef.commands.Command;

import arsmodeller.model.Employee;

public class EmployeeChangeLayoutCommand extends AbstractLayoutCommand {
	private Employee model;
	private Rectangle layout;
	private Rectangle oldLayout;

	public void execute() {
		model.setLayout(layout);
	}

	public void setConstraint(Rectangle rect) {
		this.layout = rect;
	}

	public void setModel(Object model) {
		this.model = (Employee) model;
		this.oldLayout = ((Employee) model).getLayout();
	}
}
